package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.TensionResult;
import com.ruoyi.zhgd.domain.vo.TensionResultVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 张拉结果Mapper接口
 *
 * @author zyb
 * @date 2023-09-11
 */
public interface TensionResultMapper extends BaseMapperPlus<TensionResultMapper, TensionResult, TensionResultVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "p.dept_id"),
    })
    List<Map> ensionResultList(Page page,@Param("params") Map<String, Object> params);

    @DataPermission({
        @DataColumn(key = "deptName", value = "p.dept_id"),
    })
    List<TensionResultVo> selectCode(@Param("params") Map<String, Object> params);
    List<TensionResultVo> reportDetail(@Param("params") Map<String, Object> params);

    void updateByHole(@Param("params") Map<String, Object> params);
}
